package com.vf.cloud.paas.app.master.common.mapping;

import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.vf.cloud.paas.app.master.common.domain.*;

public class _MappingKit {

	public static void mapping(ActiveRecordPlugin arp) {
		arp.addMapping("api_test", "id", ApiTest.class);
		arp.addMapping("api_test_custom", "id", ApiTestCustom.class);
		arp.addMapping("master_asset", "id", Asset.class);
		arp.addMapping("master_asset_classify", "id", AssetClassify.class);
		arp.addMapping("master_project", "id", Project.class);
		arp.addMapping("master_project_classify", "id", ProjectClassify.class);
		
		arp.addMapping("master_render_agent", "id", RenderAgent.class);
		// Composite Primary Key order: id,agent_id
		arp.addMapping("master_render_agent_gpu", "id,agent_id", RenderAgentGpu.class);
		arp.addMapping("master_render_log", "id", RenderLog.class);
		
		arp.addMapping("master_scene", "id", Scene.class);
		arp.addMapping("master_scene_classify", "id", SceneClassify.class);
		arp.addMapping("master_scene_order", "id", SceneOrder.class);
		arp.addMapping("master_scene_actor", "id", SceneActor.class);
		arp.addMapping("master_scene_camera", "id", SceneCamera.class);
		arp.addMapping("master_scene_layer", "id", SceneLayer.class);
		arp.addMapping("master_scene_share", "id", SceneShare.class);
		arp.addMapping("master_scene_tag", "id", SceneTag.class);
		arp.addMapping("master_user", "id", User.class);
		arp.addMapping("master_user_log", "id", UserLog.class);
		// Composite Primary Key order: master_id,project_id
		arp.addMapping("master_user_project", "master_id,project_id", UserProject.class);
		arp.addMapping("master_user_agent", "agent_id,user_id,agent_gpu_index", UserAgent.class);
		
		
		arp.addMapping("ue_actor", "id", Actor.class);
		arp.addMapping("ue_actor_classify", "id", ActorClassify.class);
		
		
		
	}
}
